/*
 * @Author       : xxsoftware
 * @Date         : 2023-07-03 22:05:38
 * @LastEditors  : xxsoftware
 * @LastEditTime : 2023-08-02 00:54:29
 * @FilePath     : \site\docs\.vitepress\config.js
 * @Description  :
 */
export default {
    base: process.env.NODE_ENV === 'production' ? '/' : '/',
    title: 'xxsw-UI 官方文档',
    description: 'Vue3+TS 组件库',
    head: [
        ['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo-64.svg' }],
        ['meta', { property: 'og:type', content: 'website' }],
        ['meta', { name: 'theme-color', content: '#646cff' }]
    ],

    themeConfig: {
        siteTitle: 'xxsw-UI',
        logo: 'logo-128.svg',
        outline: {
            label: '本页目录'
        },

        footer: {
            copyright:
                '<a href="http://beian.miit.gov.cn/">沪ICP备2023014937号</a>'
        },
        nav: [
            { text: '指南', link: '/guild/installation' },
            { text: '组件', link: '/components/button/' }
        ],
        socialLinks: [
            { icon: 'github', link: 'https://github.com/xxsoftware' },
            {
                icon: {
                    svg: '<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Gitee</title><path d="M11.984 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.016 0zm6.09 5.333c.328 0 .593.266.592.593v1.482a.594.594 0 0 1-.593.592H9.777c-.982 0-1.778.796-1.778 1.778v5.63c0 .327.266.592.593.592h5.63c.982 0 1.778-.796 1.778-1.778v-.296a.593.593 0 0 0-.592-.593h-4.15a.592.592 0 0 1-.592-.592v-1.482a.593.593 0 0 1 .593-.592h6.815c.327 0 .593.265.593.592v3.408a4 4 0 0 1-4 4H5.926a.593.593 0 0 1-.593-.593V9.778a4.444 4.444 0 0 1 4.445-4.444h8.296Z"/></svg>'
                },
                link: 'https://gitee.com/xxsoftware/xxsw-ui'
            },
            {
                icon: {
                    svg: '<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-mail"  viewBox="0 0 24 24" stroke-width="1.5" stroke="#2c3e50" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z" /><path d="M3 7l9 6l9 -6" /></svg>'
                },
                link: 'mailto:1105735390@qq.com'
            },
            {
                icon: {
                    svg: '<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Tencent QQ</title><path d="M21.395 15.035a39.548 39.548 0 0 0-.803-2.264l-1.079-2.695c.001-.032.014-.562.014-.836C19.526 4.632 17.351 0 12 0S4.474 4.632 4.474 9.241c0 .274.013.804.014.836l-1.08 2.695a38.97 38.97 0 0 0-.802 2.264c-1.021 3.283-.69 4.643-.438 4.673.54.065 2.103-2.472 2.103-2.472 0 1.469.756 3.387 2.394 4.771-.612.188-1.363.479-1.845.835-.434.32-.379.646-.301.778.343.578 5.883.369 7.482.189 1.6.18 7.14.389 7.483-.189.078-.132.132-.458-.301-.778-.483-.356-1.233-.646-1.846-.836 1.637-1.384 2.393-3.302 2.393-4.771 0 0 1.563 2.537 2.103 2.472.251-.03.581-1.39-.438-4.673zM12.662 4.846c.039-1.052.659-1.878 1.385-1.846s1.281.912 1.242 1.964c-.039 1.051-.659 1.878-1.385 1.846s-1.282-.912-1.242-1.964zM9.954 3c.725-.033 1.345.794 1.384 1.846.04 1.052-.517 1.931-1.242 1.963-.726.033-1.346-.794-1.385-1.845C8.672 3.912 9.228 3.033 9.954 3zM7.421 8.294c.194-.43 2.147-.908 4.566-.908h.026c2.418 0 4.372.479 4.566.908a.14.14 0 0 1 .014.061c0 .031-.01.059-.026.083-.163.238-2.333 1.416-4.553 1.416h-.026c-2.221 0-4.39-1.178-4.553-1.416a.136.136 0 0 1-.014-.144zm10.422 8.622c-.22 3.676-2.403 5.987-5.774 6.021h-.137c-3.37-.033-5.554-2.345-5.773-6.021-.081-1.35.001-2.496.147-3.43.318.063.638.122.958.176v3.506s1.658.334 3.318.103v-3.225c.488.027.96.04 1.406.034h.025c1.678.021 3.714-.204 5.683-.594.146.934.227 2.08.147 3.43zM10.48 5.804c.313-.041.542-.409.508-.825-.033-.415-.314-.72-.629-.679-.313.04-.541.409-.508.824.034.417.315.72.629.68zM14.479 5.156c.078.037.221.042.289-.146.035-.095.025-.165-.009-.214-.023-.033-.133-.118-.371-.176-.904-.22-1.341.384-1.405.499-.04.072-.012.176.056.227.067.051.139.037.179-.006.58-.628 1.21-.208 1.261-.184z"/></svg>'
                },
                link: 'http://wpa.qq.com/msgrd?v=3&uin=1105735390&site=qq&menu=yes'
            }
        ],
        sidebar: {
            '/guild/': [
                {
                    text: '基础',
                    items: [
                        {
                            text: '欢迎来到 xxsw UI',
                            link: '/guild/welcome'
                        },
                        {
                            text: '安装',
                            link: '/guild/installation'
                        },
                        {
                            text: '快速开始',
                            link: '/guild/quickstart'
                        }
                    ]
                },
                {
                    text: '进阶',
                    items: [
                        {
                            text: '样式配置',
                            link: '/guild/theme'
                        }
                    ]
                }
            ],

            '/components/': [
                {
                    text: '基础组件',
                    items: [
                        {
                            text: 'Button 按钮',
                            link: '/components/button/'
                        },
                        {
                            text: 'Icon 图标',
                            link: '/components/icon/'
                        },
                        {
                            text: 'Divider 分割线',
                            link: '/components/divider/'
                        },
                        {
                            text: 'ThemeChange 主题改变',
                            link: '/components/themeChange/'
                        },
                        {
                            text: 'ModeChange 模式改变',
                            link: '/components/modeChange/'
                        }
                    ]
                },
                {
                    text: '导航组件',
                    items: [
                        {
                            text: 'Link 链接',
                            link: '/components/link/'
                        },
                        {
                            text: 'Crumb 面包屑',
                            link: '/components/crumb/'
                        },
                        {
                            text: 'SliderBar侧边栏',
                            link: '/components/sliderBar/'
                        },
                        {
                            text: 'BackToTop 回到顶端',
                            link: '/components/backToTop/'
                        },
                        {
                            text: 'Dropdown 下拉',
                            link: '/components/dropdown/'
                        }
                    ]
                },
                {
                    text: '数据组件',
                    items: [
                        {
                            text: 'SearchSelect 搜索选择器',
                            link: '/components/searchSelect/'
                        },
                        {
                            text: 'Input 输入框',
                            link: '/components/input/'
                        },
                        {
                            text: 'Swtich 开关',
                            link: '/components/swtich/'
                        },
                        {
                            text: 'Badge 徽标',
                            link: '/components/badge/'
                        },
                        {
                            text: 'Avatar 头像',
                            link: '/components/avatar/'
                        },
                        {
                            text: 'AvatarGroup 头像组',
                            link: '/components/avatarGroup/'
                        },
                        {
                            text: 'Stars 五星评价',
                            link: '/components/stars/'
                        },
                        {
                            text: 'Carousel 轮播',
                            link: '/components/carousel/'
                        },
                        {
                            text: 'Scroll 滚动',
                            link: '/components/scroll/'
                        },
                        {
                            text: 'TreeMenu 树形目录',
                            link: '/components/treeMenu/'
                        },
                        {
                            text: 'Progress 环形进度条',
                            link: '/components/progress/'
                        },
                        {
                            text: 'ColorPicker 颜色选择器',
                            link: '/components/colorPicker/'
                        }
                    ]
                },
                {
                    text: '特色组件',
                    items: [
                        {
                            text: 'SurroundTags 环绕3D标签',
                            link: '/components/surroundTags/'
                        },
                        {
                            text: 'terminal模拟终端',
                            link: '/components/terminal/'
                        },
                        {
                            text: 'Glitch 故障',
                            link: '/components/glitch/'
                        },
                        {
                            text: 'Weather 天气',
                            link: '/components/weather/'
                        },
                        {
                            text: 'FlipCard 翻转卡片',
                            link: '/components/flipCard/'
                        }
                    ]
                },
                {
                    text: '交互组件',
                    items: [
                        {
                            text: 'Confetti 五彩纸屑',
                            link: '/components/confetti/'
                        },
                        {
                            text: 'Magnifier 放大镜',
                            link: '/components/magnifier/'
                        },
                        {
                            text: 'Modal 模态框',
                            link: '/components/modal/'
                        },
                        {
                            text: 'Message 消息提示',
                            link: '/components/message/'
                        }
                    ]
                }
            ]
        }

        // algolia: {
        //     appId: '7H67QR5P0A',
        //     apiKey: 'deaab78bcdfe96b599497d25acc6460e',
        //     indexName: 'vitejs',
        //     searchParameters: {
        //         facetFilters: ['tags:cn']
        //     },
        //     placeholder: '搜索文档',
        //     translations: {
        //         button: {
        //             buttonText: '搜索'
        //         },
        //         modal: {
        //             searchBox: {
        //                 resetButtonTitle: '清除查询条件',
        //                 resetButtonAriaLabel: '清除查询条件',
        //                 cancelButtonText: '取消',
        //                 cancelButtonAriaLabel: '取消'
        //             },
        //             startScreen: {
        //                 recentSearchesTitle: '搜索历史',
        //                 noRecentSearchesText: '没有搜索历史',
        //                 saveRecentSearchButtonTitle: '保存到搜索历史',
        //                 removeRecentSearchButtonTitle: '从搜索历史中移除',
        //                 favoriteSearchesTitle: '收藏',
        //                 removeFavoriteSearchButtonTitle: '从收藏中移除'
        //             },
        //             errorScreen: {
        //                 titleText: '无法获取结果',
        //                 helpText: '你可能需要检查你的网络连接'
        //             },
        //             footer: {
        //                 selectText: '选择',
        //                 navigateText: '切换',
        //                 closeText: '关闭',
        //                 searchByText: '搜索供应商'
        //             },
        //             noResultsScreen: {
        //                 noResultsText: '无法找到相关结果',
        //                 suggestedQueryText: '你可以尝试查询',
        //                 reportMissingResultsText: '你认为这个查询应该有结果？',
        //                 reportMissingResultsLinkText: '向我们反馈'
        //             }
        //         }
        //     }
        // },

        // carbonAds: {
        //     code: 'CEBIEK3N',
        //     placement: 'vitejsdev'
        // }
    }
};
